<?php
class Experiencia extends AppModel {
	var $name = 'Experiencia';
	//The Associations below have been created with all possible keys, those that are not needed can be removed

	var $belongsTo = array(
		'Curriculo' => array(
			'className' => 'Curriculo',
			'foreignKey' => 'curriculo_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Empresa' => array(
			'className' => 'Empresa',
			'foreignKey' => 'empresa_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Moeda' => array(
			'className' => 'Moeda',
			'foreignKey' => 'moeda_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'RegimeSalario' => array(
			'className' => 'RegimeSalario',
			'foreignKey' => 'regime_salario_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Area' => array(
			'className' => 'Area',
			'foreignKey' => 'area_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Paise' => array(
			'className' => 'Paise',
			'foreignKey' => 'paise_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Provincia' => array(
			'className' => 'Provincia',
			'foreignKey' => 'provincia_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Distrito' => array(
			'className' => 'Distrito',
			'foreignKey' => 'distrito_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)
	);

	var $hasAndBelongsToMany = array(
		'Tempo' => array(
			'className' => 'Tempo',
			'joinTable' => 'tempo_experiencias',
			'foreignKey' => 'experiencia_id',
			'associationForeignKey' => 'tempo_id',
			'unique' => true,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'finderQuery' => '',
			'deleteQuery' => '',
			'insertQuery' => ''
		)
	);

}
